import { build, initialize, WASM_URL } from "../esbuild-wasm/mod.ts"; await initialize({ wasmURL: WASM_URL, worker: false, }); const result = await build({ stdin: { contents: "console.log('hello, world');", sourcefile: "test.ts", resolveDir: Deno.cwd(), }, bundle: true, minify: true, splitting: true, outdir: "out", format: "esm", }); console.log(result);